package service

import (
	"elflog/common/dig"
	"elflog/component/nlog"
	"elflog/module/module-account/dao"
	"github.com/bluele/gcache"
)

type ModuleAccountService struct {
	log         *nlog.NLog
	dao         *dao.AccountDao
	loggerCache gcache.Cache
}

func NewModuleAccountService(log *nlog.NLog, dao *dao.AccountDao) *ModuleAccountService {
	return &ModuleAccountService{
		log:         log,
		dao:         dao,
		loggerCache: gcache.New(100).LRU().Build(),
	}
}

func init() {
	dig.Container.MustProvide(NewModuleAccountService)
}
